package TD_Maven;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: naberrad
 * Date: 04/11/13
 * Time: 09:11
 * To change this template use File | Settings | File Templates.
 */
public class Etudiant {

    private List<Double> note ;

    public Etudiant(List<Double> note) {
        this.note = note;
    }

    public void addNote(double note)
    {
        this.note.add(note);
    }

    public double moyenne()
    {
        double moy=0;
        for (int i= 0;i<note.size(); i++) {
            moy=moy+note.get(i);
        }
        moy=moy/note.size();
       return moy;
    }

    public void razNotes()
    {
        note.clear();
    }
}
